package com.tongxin.van.frameworkcanary.view;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;

import com.tongxin.van.frameworkcanary.MainActivity;
import com.tongxin.van.frameworkcanary.R;
import com.tongxin.van.frameworkcanary.base.BaseActivity;

import java.util.Timer;
import java.util.TimerTask;

/**
 * author: VanyLiu
 * email: 13212674795@163.com
 * description:初始界面
 **/
public class SplashActivity extends BaseActivity {
    @Override
    protected int layoutId() {
        return R.layout.activity_splash;
    }

    @Override
    protected void getBundleData(Bundle bundle) {

    }

    @Override
    protected void initTitlebar() {

    }

    @Override
    protected void initViews() {



        Intent intent = new Intent();
        intent.setClass(SplashActivity.this, LoginActivity.class);

       Timer timer = new Timer();
                         timer.schedule(new TimerTask() {
                     @Override
                    public void run() {
                         startActivity(intent);             //do something
                                  }
                },2500);//延时1s执行
    }

    @Override
    protected void loadData() {

    }
}
